package hu.vpszd.services.impl

import hu.vpszd.entities.customer.Customer
import hu.vpszd.services.CustomerService

import org.springframework.stereotype.Repository
import org.springframework.transaction.annotation.Transactional

@Repository("customerService")
@Transactional
class CustomerServiceImpl extends BaseServiceImpl<Customer> implements CustomerService{

	public List<Customer> findAll() {
		return findAll(Customer.class);
	}
	
	Customer getBank(){
		return find(Customer.class, 1)
	}
	
	Customer find(long id) {
		find(Customer.class, id)
	}
}
